package po;


import java.io.Serializable;
import java.util.Objects;

/**
 * <p>  
 *  TbCity null
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbCity  implements Serializable {


	private Long id;

	/**
	 * 城市所在的国家对应的id
	 */
	private Long countryId;

	/**
	 * 省或者州的英文名称,若某国家没有这一个行政级别,则为空
	 */
	private String state;

	/**
	 * 城市的标准英文名称
	 */
	private String name;

	/**
	 * 城市的小写英文名称,用于搜索
	 */
	private String lowerName;

	/**
	 * 省或者州的中文名称,若某国家没有这一个行政级别
	 */
	private String cnState;

	/**
	 * 城市的标准中文名称
	 */
	private String cnName;

	/**
	 * 城市的代码(一般表示缩写
	 */
	private String cityCode;

	/**
	 * 省或者州代码(一般表示缩写),若某个国家没有州或省这个行政级别，则为空
	 */
	private String stateCode;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLowerName() {
		return lowerName;
	}

	public void setLowerName(String lowerName) {
		this.lowerName = lowerName;
	}

	public String getCnState() {
		return cnState;
	}

	public void setCnState(String cnState) {
		this.cnState = cnState;
	}

	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public String getStateCode() {
		return stateCode;
	}

	public void setStateCode(String stateCode) {
		this.stateCode = stateCode;
	}

	@Override
	public String toString() {
		return "TbCity{" +
				"id=" + id +
				", countryId=" + countryId +
				", state='" + state + '\'' +
				", name='" + name + '\'' +
				", lowerName='" + lowerName + '\'' +
				", cnState='" + cnState + '\'' +
				", cnName='" + cnName + '\'' +
				", cityCode='" + cityCode + '\'' +
				", stateCode='" + stateCode + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCity)) {
			return false;
		}
		TbCity tbCity = (TbCity) o;
		return Objects.equals(id, tbCity.id) &&
				Objects.equals(countryId, tbCity.countryId) &&
				Objects.equals(state, tbCity.state) &&
				Objects.equals(name, tbCity.name) &&
				Objects.equals(lowerName, tbCity.lowerName) &&
				Objects.equals(cnState, tbCity.cnState) &&
				Objects.equals(cnName, tbCity.cnName) &&
				Objects.equals(cityCode, tbCity.cityCode) &&
				Objects.equals(stateCode, tbCity.stateCode);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, countryId, state, name, lowerName, cnState, cnName, cityCode, stateCode);
	}
}
